package classwork;

import classwork_domain.Phone;

public class Demo1 {
    public static void main(String[] args) {
        // 根据类创建一个实例对象
        Phone phone = new Phone();

        // 调用属性
        String brand = phone.brand;
        System.out.println("brand = " + brand);

        System.out.println(phone.price);
        System.out.println(phone.colour);

        // 调用行为
        phone.call();
        phone.sendMessages();
    }
}
